package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 实时库存对象 ha_drug_stocks
 * 
 * @author 鲍小伟
 * @date 2025-11-26
 */
public class HaDrugStocks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存ID */
    private Long stockid;

    /** 入库单 */
    @Excel(name = "入库单")
    private Long inid;

    /** 药品明细 */
    @Excel(name = "药品明细")
    private Long itemid;

    /** 存放位置 */
    @Excel(name = "存放位置")
    private String storageLoc;

    /** 入库活度 */
    @Excel(name = "入库活度")
    private String initialActivity;

    /** 当前活度 */
    @Excel(name = "当前活度")
    private String currentActivity;

    /** 最后计算时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后计算时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date measureTime;

    /** 物理半衰期(分) */
    @Excel(name = "物理半衰期(分)")
    private String halfLifemin;

    /** 数量 */
    @Excel(name = "数量")
    private Long itemnum;

    /** 库存状态 */
    @Excel(name = "库存状态")
    private String stockStatus;

    public void setStockid(Long stockid) 
    {
        this.stockid = stockid;
    }

    public Long getStockid() 
    {
        return stockid;
    }

    public void setInid(Long inid) 
    {
        this.inid = inid;
    }

    public Long getInid() 
    {
        return inid;
    }

    public void setItemid(Long itemid) 
    {
        this.itemid = itemid;
    }

    public Long getItemid() 
    {
        return itemid;
    }

    public void setStorageLoc(String storageLoc) 
    {
        this.storageLoc = storageLoc;
    }

    public String getStorageLoc() 
    {
        return storageLoc;
    }

    public void setInitialActivity(String initialActivity) 
    {
        this.initialActivity = initialActivity;
    }

    public String getInitialActivity() 
    {
        return initialActivity;
    }

    public void setCurrentActivity(String currentActivity) 
    {
        this.currentActivity = currentActivity;
    }

    public String getCurrentActivity() 
    {
        return currentActivity;
    }

    public void setMeasureTime(Date measureTime) 
    {
        this.measureTime = measureTime;
    }

    public Date getMeasureTime() 
    {
        return measureTime;
    }

    public void setHalfLifemin(String halfLifemin) 
    {
        this.halfLifemin = halfLifemin;
    }

    public String getHalfLifemin() 
    {
        return halfLifemin;
    }

    public void setItemnum(Long itemnum) 
    {
        this.itemnum = itemnum;
    }

    public Long getItemnum() 
    {
        return itemnum;
    }

    public void setStockStatus(String stockStatus) 
    {
        this.stockStatus = stockStatus;
    }

    public String getStockStatus() 
    {
        return stockStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("stockid", getStockid())
            .append("inid", getInid())
            .append("itemid", getItemid())
            .append("storageLoc", getStorageLoc())
            .append("initialActivity", getInitialActivity())
            .append("currentActivity", getCurrentActivity())
            .append("measureTime", getMeasureTime())
            .append("halfLifemin", getHalfLifemin())
            .append("itemnum", getItemnum())
            .append("stockStatus", getStockStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
